<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>About the XML Source Editor</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>

<body>
<p><a id="org.netbeans.modules.xml.text.syntax.XMLKit" name="org.netbeans.modules.xml.text.syntax.XMLKit"></a></p>
<div id="NBCSH4406"><!-- infolevel="all" infotype="General" --><a id="sthref624" name="sthref624"></a>
<h1>About the XML Source Editor</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>The XML Source Editor is a full-featured text editor that is integrated with other parts of the IDE. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1391">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>The XML editor has the following features:</p>

<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="34%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t2">Element</th>
<th align="left" valign="bottom" id="r1c2-t2">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t2" headers="r1c1-t2">Source Editor Tabs</td>
<td align="left" headers="r2c1-t2 r1c2-t2">The top of the Source Editor has a tab for each open document. Each tab shows the name of the document. If the document has been modified and has not been saved, there is an asterisk (*) after its name. 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG154">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>

<p>If multiple files are open, you can split the Source Editor view by clicking and dragging the tab. As you drag to different parts of the editing area, you see a red outline that shows you where the new window will open. When one of these boxes appears, you can drop the document and split the pane.</p>
<p><b>Note</b>: You must close the split file if you want the editor to return to its unsplit state.</p>
<p>You can right-click a tab to access the following commands:</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Close All</p>
</td>
<td align="left" headers="r3c1-t2 r1c2-t2">Closes all files that are open in the Source Editor area.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Close Other</p>
</td>
<td align="left" headers="r4c1-t2 r1c2-t2">Closes all files except for the selected file.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Save</p>
</td>
<td align="left" headers="r5c1-t2 r1c2-t2">Saves the selected file.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Clone</p>
</td>
<td align="left" headers="r6c1-t2 r1c2-t2">Opens a new tab for the same document. This command is particularly useful in combination with splitting the window so that you can view different parts of the same file simultaneously.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Close Window</p>
</td>
<td align="left" headers="r7c1-t2 r1c2-t2">Closes the selected file.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Maximize Window/Restore Window</p>
</td>
<td align="left" headers="r8c1-t2 r1c2-t2">Maximize Window hides other windows and expands the Source Editor to use all of the window space in the IDE. Restore Window returns the windows to the state that they were before you chose Maximize Window. You can also maximize and restore the Source Editor by double-clicking a tab.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Float/Dock Window</p>
</td>
<td align="left" headers="r9c1-t2 r1c2-t2">Opens document in an editor in a new window. If window is already floating, the Dock Window option appears instead.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r10c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;New Document Tab Group/Collapse Document Tab Group</p>
</td>
<td align="left" headers="r10c1-t2 r1c2-t2">Splits the editor window into two groups of tabs and separates the selected tab into the new group. If a separate group of tabs exists, Collapse Document Tab Group combines these groups into one group.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r11c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Select in Projects</p>
</td>
<td align="left" headers="r11c1-t2 r1c2-t2">Highlights the file's node in the Projects window.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r12c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Local History</p>
</td>
<td align="left" headers="r12c1-t2 r1c2-t2">Opens a menu from which you can view the changes you made to the file or revert those changes.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r13c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;[<i>version control</i>]</p>
</td>
<td align="left" headers="r13c1-t2 r1c2-t2">If the file is under version control, a menu item with the name of the version control system appears. The option opens a menu of relevant version control commands.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r14c1-t2" headers="r1c1-t2">
<p>&nbsp;&nbsp;&nbsp;&nbsp;Diff To...</p>
</td>
<td align="left" headers="r14c1-t2 r1c2-t2">Diffs the file to another file in its folder or another file open in the editor.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r15c1-t2" headers="r1c1-t2">Toolbar</td>
<td align="left" headers="r15c1-t2 r1c2-t2">The editor toolbar is at the top of the Source Editor window. The toolbar has buttons for various navigating and editing shortcuts, which vary according to the type of file you are editing. Hold the cursor over a button to display a description of the command.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r16c1-t2" headers="r1c1-t2">Left Margin</td>
<td align="left" headers="r16c1-t2 r1c2-t2">The left margin displays annotation glyphs that indicate line status, such as warnings.
<p>You can right-click the left margin to display a popup menu. The margin can also optionally display line numbers.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r17c1-t2" headers="r1c1-t2">Error Stripe</td>
<td align="left" headers="r17c1-t2 r1c2-t2">The error stripe is the strip to the right of the right scroll bar and contains marks for various things in your file, such as errors, bookmarks, and comments for the To Do list. The error stripe represents the whole file, not just the lines currently displayed. You can immediately identify whether your file has any errors without having to scroll through the entire file. You can double-click a mark in the error stripe to jump to the line that the mark refers to.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r18c1-t2" headers="r1c1-t2">Status Line</td>
<td align="left" headers="r18c1-t2 r1c2-t2">The Source Editor status line is in the bottom right corner of the IDE. The first area of the status line shows the current line number and row number in the form line:row. The second area of the status line indicates the insertion mode (INS or OVR). The text area on the right is used for status messages.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r19c1-t2" headers="r1c1-t2">Syntax Coloring</td>
<td align="left" headers="r19c1-t2 r1c2-t2">Source code displayed in the Source Editor is syntactically colored. For example, all XML keywords are shown in blue and all XML comments in light gray.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r20c1-t2" headers="r1c1-t2">Code Completion and Text Hints</td>
<td align="left" headers="r20c1-t2 r1c2-t2">The IDE's code completion feature helps you fill in code and tags as you are typing. Code completion is available for PHP, HTML, and XML files. Code completion applies both to tag names and attributes. If your document is defined by a DTD and the IDE can access the DTD, the Source Editor also offers code completion for all supported elements, attributes, and entities. As you type, a combo box displays all matching elements in the DTD. Press Enter to enter only the element name, or press Shift-Enter to enter a start tag and end tag for the element.
<p><b>Note</b>: If code completion does not appear, press Ctrl+Space.</p>
<p>After you select an item, code completion closes. Press Ctrl-Space to reopen code completion.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r21c1-t2" headers="r1c1-t2">Insert Mode and Overwrite Mode</td>
<td align="left" headers="r21c1-t2 r1c2-t2">When the Source Editor is in insert mode, the default insertion point is a vertical bar, and text that you type is inserted. In overwrite mode, the default insertion point is a solid block, and text that you type replaces the existing text.
<p>Use the Insert key to toggle between the two modes.</p>
<p>Whenever the insertion point in the Source Editor is located immediately after a brace, bracket, or parenthesis, the matching brace, bracket, or parenthesis is highlighted.</p>
<p><b>Note</b>: If the Source Editor beeps when you try to enter new text, the file is a read-only file.</p>
</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH4419" name="NBCSH4419"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1386">
<param name="text" value="<html><u>&quot;About Developing Applications Using XML</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
"</p>
<p><i>Developing Applications with NetBeans IDE</i>, 
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1387">
<param name="text" value="<html><u>&quot;Creating and Editing XML Document</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
s"</p>

<!-- -->
<!-- Start Footer -->


<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>
